<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改规则引擎chain')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-LiteflowChain-edit" th:object="${liteflowChain}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">应用名称：</label>
                    <div class="col-sm-8">
                        <input name="applicationName" th:field="*{applicationName}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">chain名称：</label>
                    <div class="col-sm-8">
                        <input name="chainName" th:field="*{chainName}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">chain描述：</label>
                    <div class="col-sm-8">
                        <input name="chainDesc" th:field="*{chainDesc}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">表达式内容：</label>
                    <div class="col-sm-8">
                        <textarea name="elData" class="form-control">[[*{elData}]]</textarea>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">路由规则：</label>
                    <div class="col-sm-8">
                        <textarea name="route" class="form-control">[[*{route}]]</textarea>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">命名空间：</label>
                    <div class="col-sm-8">
                        <input name="namespace" th:field="*{namespace}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">是否启用：</label>
                    <div class="col-sm-8">
                        <input name="enable" th:field="*{enable}" class="form-control" type="text">
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "liteflow/LiteflowChain";
        $("#form-LiteflowChain-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-LiteflowChain-edit').serialize());
            }
        }
    </script>
</body>
</html>